package siruna.WE.DeviceDependent.AndroidViews;

import java.util.HashMap;

import siruna.WE.core.model.VisualBlock;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup.LayoutParams;
import android.widget.ImageView;
import android.widget.TextView;

public class LabelRenderer extends TextView {

	public LabelRenderer(Context context, VisualBlock vb) {
		super(context);
		System.out.println("halllooooo: LabelRenderen geconstrueert");
		LayoutParams wrapcontent = new LayoutParams(LayoutParams.WRAP_CONTENT,
				LayoutParams.WRAP_CONTENT);

		final HashMap<String, String> attributes = vb.getAttributes();

		setText(attributes.get("text"));
		setLayoutParams(wrapcontent);

	}

}
